import request from '@/utils/request'


// 查询钱包详细
export function getWalletByUserId(id) {
  return request({
    url: '/api/wallet/' + id,
    method: 'get'
  })
}

// 新增钱包
export function addWallet(data) {
  return request({
    url: '/api/wallet',
    method: 'post',
    data: data
  })
}

// 查询钱包收支列表
export function listInfo(query) {
  return request({
    url: '/api/info/list',
    method: 'get',
    params: query
  })
}

//充值
export function recharge(data) {
  return request({
    url: '/api/info/recharge',
    method: 'post',
    data: data
  })
}


